﻿@model SpecificationAttributeOptionModel

<div asp-validation-summary="ModelOnly"></div>
<input type="hidden" asp-for="Id" />
<input type="hidden" asp-for="SpecificationAttributeId" />

@(Html.LocalizedEditor<SpecificationAttributeOptionModel, SpecificationAttributeOptionLocalizedModel>("specification-attribute-option-localized",
@<text>
    <div class="adminContent">
		<div class="adminRow">
			<div class="adminTitle">
				<smart-label asp-for="Locales[item].Name" />
			</div>
			<div class="adminData">
				@*IMPORTANT: Do not delete, this hidden element contains the id to assign localized values to the corresponding language *@
                <input asp-for="Locales[item].LanguageId" type="hidden" />
                <input asp-for="Locales[item].Name" />
				<span asp-validation-for="Locales[item].Name"></span>
			</div>
		</div>
		<div class="adminRow">
			<div class="adminTitle">
                <smart-label asp-for="Locales[item].Alias" />
			</div>
            <div class="adminData">
                <editor asp-for="Locales[item].Alias" />
                <span asp-validation-for="Locales[item].Alias"></span>
            </div>
		</div>
	</div>
</text>
,
@<text>
    <div class="adminContent">
		<div class="adminRow">
			<div class="adminTitle">
				<smart-label asp-for="Name" />
			</div>
			<div class="adminData">
                <input asp-for="Name" />
				<span asp-validation-for="Name"></span>
			</div>
		</div>
		<div class="adminRow">
			<div class="adminTitle">
                <smart-label asp-for="Alias" />
			</div>
            <div class="adminData">
                <editor asp-for="Alias" />
                <span asp-validation-for="Alias"></span>
            </div>
		</div>
	</div>
</text>))

<div class="adminContent">
    <div class="adminRow">
        <div class="adminTitle">
            <smart-label asp-for="PictureId" />
        </div>
        <div class="adminData">
            <editor asp-for="PictureId" />
            <span asp-validation-for="PictureId"></span>
        </div>
    </div>
    <div class="adminRow">
        <div class="adminTitle">
            <smart-label asp-for="Color" />
        </div>
        <div class="adminData">
            <editor asp-for="Color" />
            <span asp-validation-for="Color"></span>
        </div>
    </div>
    <div class="adminRow">
        <div class="adminTitle">
            <smart-label asp-for="NumberValue" />
        </div>
        <div class="adminData">
            <editor asp-for="NumberValue" />
            <span asp-validation-for="NumberValue"></span>
        </div>
    </div>
    <div class="adminRow">
        <div class="adminTitle">
            <smart-label asp-for="DisplayOrder" />
        </div>
        <div class="adminData">
            <editor asp-for="DisplayOrder" />
            <span asp-validation-for="DisplayOrder"></span>
        </div>
    </div>
    <div sm-if="ViewBag.MultipleEnabled == true" class="adminRow">
        <div class="adminTitle">
            <smart-label asp-for="Multiple" />
        </div>
        <div class="adminData">
            <input asp-for="Multiple" />
            <span asp-validation-for="Multiple"></span>
        </div>
    </div>
</div>